import { useRoutes } from "react-router-dom";
import { lazy } from "react";
const Home = lazy(() => import("./../views/home"))
const User = lazy(() => import("./../views/user"))

export default function () {
    return useRoutes([
        {
            path: '/',
            element: <Home />
        },
        {
            path: '/user',
            element: <User />
        },
        {
            path: '/home',
            element: <Home />
        }
    ])
} 